/*
 * Created on 09.10.2006 by leck
 *
 */
package de.devisnik.eidle.ide;

import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IntegerFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.preferences.ScopedPreferenceStore;

import de.devisnik.eidle.EidleActivator;

public class ActivationPreferencePage extends FieldEditorPreferencePage
		implements IWorkbenchPreferencePage {

	public ActivationPreferencePage() {
		super("general", GRID);
		setPreferenceStore(new ScopedPreferenceStore(new InstanceScope(),
				EidleActivator.PLUGIN_ID));
	}

	protected void createFieldEditors() {
		IntegerFieldEditor countDownEditor = new IntegerFieldEditor(
				ActivationPreferences.KEY_COUNTDOWN,
				"Activation count down (in s)", getFieldEditorParent());
		countDownEditor.setValidRange(10, 10000);
		addField(countDownEditor);
	}

	public void init(IWorkbench workbench) {
	}

}
